package com.zhiyou.Test;

import com.zhiyou.Util.MyBatisUtil;
import com.zhiyou.pojo.User;
import org.apache.ibatis.session.SqlSession;

public class TestUserDelete {
    public static void main(String[] args) {
        SqlSession session= MyBatisUtil.getSqlSessionFactory().openSession();
        User user=new User();
        user.setId(1);
        session.delete("com.zhiyou.dao.UserDaoDelete.deleteUserById",user);
    }
}
